var CreateGlobalManage = function() {
<<<<<<< HEAD
    this.ttys=100;

   //websocket
    this.g_slider_set_manual_v=0;

  //控制手动发命令
    this.intervalSendCmd=0;
   /* 0,停止　１，运行 */
    this.rockerMotionCmd = 0;
    //程序　dp　点
    this.programSetVehiclePostion=0;

=======
   
    //websocket
    this.g_slider_set_manual_v=0;

    //控制手动发命令
    this.intervalSendCmd=0;   
    //手动定时器
    this.intervalTimer;
    
    //程序　dp　点位初始化，密码
    this.programSetVehiclePostion=0;
    //关机密码输入 1,关机 2,重启
    this.shutdownPwdInput=0;

    //在程序文件列表里面打开手动，再点程序时跳回程序文件列表
    this.jumpProgramFileStringWindowOpen=0;
    //当前打开的程序获取失败时重复获取
    this.requestProgramFileString=0;
    //程序－查看－读取点－移动到点记录选择的指令
    this.programSelInstraction="";
    //定时获取VMARK调试信息
    this.request_vmark_info=0;
    //程序没有停止载入点，提示停止程序
    this.tipsCeaseProgramForRecordDp=0;
    //手动运行时判断是否是T1,T2模式 
    this.tipsManualMustBeT1T2=0;
>>>>>>> dev

    this.objWebSocket=new HmiWebSocket();
    //事件处理
    this.objCusEventHandle = new CusNameSpace.CusEventHandle();
<<<<<<< HEAD
	//初始化
    this.objCusHmiUi = new CusNameSpace.CusHmiUi();
	//顶部按键处理
    this.objCusUpdateTopState = new CusNameSpace.CusUpdateTopState();
=======
    //初始化
    this.objCusHmiUi = new CusNameSpace.CusHmiUi();
    //顶部按键处理
    this.objCusUpdateTopState = new CusNameSpace.CusUpdateTopState();
    //协议处理
    this.objCusProtocol = new CusNameSpace.CusProtocol();
    //程序模块
    this.objCusProgramMode = new CusNameSpace.CusPageProgramMode();
    //手动模块
    this.objCusManualMode=new CusNameSpace.CusPageManualMode();
    //测试输出
    this.objDebugOut = new debugout();
    //页面显示
    this.objCusUiRefrush=new CusNameSpace.CusUiRefrush();
    //cookie管理
    this.objCusCookie=new CusNameSpace.CusCookie();
    
    this.objCusHmiUi.OnInitDlg();
    this.objCusUpdateTopState.onInitData();
>>>>>>> dev
    
};

CreateGlobalManage.prototype.OnInit = function() {
<<<<<<< HEAD
 
}
=======
    this.objCusProgramMode.languageProgramString=this.objCusCookie.getProgramLanguage();
    if(this.objCusProgramMode.languageProgramString == enumTypeProgramLanguageType.kLanuageCh)
    {
        $('#id_set_program_language').selectpicker('val', "中文指令");
    }
    else
    {
        $('#id_set_program_language').selectpicker('val', "英文指令");
    }
    
};
>>>>>>> dev

var ProxySingletonCreate = (function() {
    var instance;
    return function() {
        if (!instance) {
            instance = new CreateGlobalManage();
        }
        return instance;
    }
})();

//var a = new ProxySingletonCreateDiv();
//var b = new ProxySingletonCreateDiv();